package org.bbmall.bean.sales;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 实时销售流水实体类
 * 对应数据库表：ads_recent_sales
 */
@Data
@TableName("ads_recent_sales")
public class AdsRecentSales {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 销售时间
     */
    @TableField("sale_time")
    private LocalDateTime saleTime;

    /**
     * 订单ID
     */
    @TableField("transaction_id")
    private Long transactionId;

    /**
     * 消费金额
     */
    @TableField("sales_amount")
    private BigDecimal salesAmount;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}